import React, { Component } from 'react'

/* export default class Child extends Component {
  render() {
    return <div>Child: {this.props.salary}</div>
  }
} */

const Child = (props) => {
  return <div>Child: {props.salary}</div>
}

export default Child
